import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/Home'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: { name: 'Home' }
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/create_activity',
      name: 'Create',
      component: () => import(/* webpackChunkName: 'create' */ '@/views/Create')
    }
  ],
  mode: 'history'
})
